package com.fengmi.controller;

import com.fengmi.entity.StatOrder;
import com.fengmi.service.OrderStatService;
import com.fengmi.vo.InfoResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Author: 施俊豪
 * Date: 2022/2/8 17:45
 * Note: 定时订单表Controller
 */
@Api(tags = "定时订单表Controller")
@RestController
@CrossOrigin
@RequestMapping("stat/order")
public class OrderStatController {
    @Autowired
    private OrderStatService orderStatService;

    @RequestMapping("/findStatOrderByTime")
    public InfoResult<List<StatOrder>> findStatOrderByTime(String start,String end){
        return orderStatService.statOrderByTime(start, end);
    }
}
